<template>
	<view>
		<search></search>
		<view class="xz_box">
			<picker @change="bindPickerChange" :value="index" :range="array"  style="width:25%;">
				<view class="pull_down">
					<view>{{array[index]}}</view>
					<image src="../../static/3.png" mode=""></image>
				</view>
			</picker>
			<picker @change="bindPickerChange" :value="index" :range="array" style="width: 30%;">
				<view class="pull_down">
					<view>{{array[index]}}</view>
					<image src="../../static/3.png" mode=""></image>
				</view>
			</picker>
			<picker @change="bindPickerChange" :value="index" :range="array" style="width: 25%;">
				<view class="pull_down">
					<view>{{array[index]}}撒地方试点范围的服务色饭俄方五个方</view>
					<image src="../../static/3.png" mode=""></image>
				</view>
			</picker>
		</view>
		
	</view>
</template>

<script>
	import search from '../../component/search.vue'
	export default {
		data() {
			return {
				index:0,
				array:[0,1,2,3,4,5]
			}
		},
		components:{
			search
		},
		methods: {
			bindPickerChange: function(e) {
				console.log('picker发送选择改变，携带值为', e.target.value)
				this.index = e.target.value
			},
		}
	}
</script>

<style>
	.xz_box{
		display: flex;
		justify-content: space-around;
		align-items: center;
	}
	.pull_down>image{
		width: 32rpx;
		height: 32rpx;
		vertical-align: middle;
	}
	.pull_down>view{
		width: calc(100% - 22rpx);
		overflow: hidden;
		text-overflow:ellipsis;
		white-space: nowrap;
	}
	.pull_down{
		height: 40rpx;
		border-radius: 28rpx;
		background: #FFFFFF;
		padding: 0 18rpx;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
</style>
